<%-- 
    Document   : reporteefectividad
    Created on : Nov 25, 2012, 9:58:34 PM
    Author     : Sistemas
--%>

<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
 
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>


<div class="container">
    <h1 style="float:left;">Reporte de Efectividad</h1>
    <div style="float:right;margin-bottom: 10px;">
        <a href="<c:url value='/pages/reporte/reporteefectividad'/>" class="btn btn-primary">Buscar</a>        
    </div>
    <div class="clear"></div>
    <div class="buscar-form">
        <form:form action="buscar" method="post" commandName="criterioBusqueda">
            <table cellpadding="0" cellspacing="0" border="0">
                <tr>
                    <td><label>Torneo:</label></td>
                    <td>
                        <form:input path="nombre" size="10"></form:input>
                    </td>
                    <td><label>Estado:</label></td>
                    <td>
                        <form:select path="estado">
                            <option value="1">Registrado</option>
                            <option value="2">En Proceso</option>
                            <option value="3">Cerrado</option>
                        </form:select>
                    </td>
                    <td>
                        <input type="submit" value="Buscar" class="btn btn-mini btn-primary"/>
                    </td>
                </tr>
            </table>
        </form:form>
    </div>        
    <br/>
    <table class="table table-hover">
        <tr>
            <th>Torneo</th>
            <th>Part. Inicial</th>
            <th>Part. Ant.</th>
            <th>Fecha Lanz.</th>
            <th>Fecha Cierre</th>
            <th>Efectividad</th>
        </tr>
        <c:forEach var="torneo" items="${torneo}">
            <tr>
                <td>${torneo.notorneo}</td>
                <td>${torneo.fltipo}</td>
                <td></td>
                <td>${torneo.fclanzamiento}</td>
                <td>${torneo.fccierre}</td>
            </tr>
        </c:forEach>
    </table>
</div>
